import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  name: [{ required: true, message: "站点名称为必填项", trigger: "blur" }],
  type: [{ required: true, message: "类型为必填项", trigger: "change" }],
  x: [{ required: true, message: "x轴为必填项", trigger: "blur" }],
  y: [{ required: true, message: "y轴为必填项", trigger: "blur" }],
  status: [{ required: true, message: "状态为必填项", trigger: "change" }],
  sort: [{ required: true, message: "排序为必填项", trigger: "blur" }]
});
